package com.itheima.test1;

public class TestPhone {
    public static void main(String[] args) {
        //1.创建对象
        Phone p = new Phone();
        //2.调用成员变量并赋值
        p.brand = "小米";
        p.price = 5999;
        //3.打印复制后的成员变量
        System.out.println(p.brand+ "..." + p.price);
        //4.调用成员方法
        String arr = "阿强";
        p.call(arr);
        p.sendMessage(arr);

    }
}
